home *** CD-ROM | disk | FTP | other *** search
/ BCI NET 2 / BCI NET 2.iso / archives / utilities / commodity / exchangev200.lha / ExChange / Install / Source / Defines.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-06-23  |  2.7 KB  |  94 lines

  1. char *GetStr(APTR obj);
  2. BOOL GetBool(APTR obj);
  3. int GetInt(APTR obj);
  4. LONG GetRadio(APTR obj);
  5. LONG GetCycle(APTR obj);
  6.  
  7. #define SetNextStr(wnd, act, next) DoMethod (act, MUIM_Notify, MUIA_String_Acknowledge,\
  8.                         MUIV_EveryTime, wnd, 3, MUIM_Set, MUIA_Window_ActiveObject, next)
  9.  
  10. #define SetButID(app, but, id) DoMethod(but, MUIM_Notify, MUIA_Pressed, FALSE, app, 2, MUIM_Application_ReturnID, id)
  11. #define SetStrID(app, str, id) DoMethod(str, MUIM_Notify, MUIA_String_Acknowledge, MUIV_EveryTime, app, 2, MUIM_Application_ReturnID, id)
  12. #define SetCycID(app, str, id) DoMethod(str, MUIM_Notify, MUIA_Cycle_Active, MUIV_EveryTime, app, 2, MUIM_Application_ReturnID, id)
  13. #define SetSliID(app, str, id) DoMethod(str, MUIM_Notify, MUIA_Slider_Level, MUIV_EveryTime, app, 2, MUIM_Application_ReturnID, id)
  14. #define SetChkID    SetButID
  15. #define SetListID(app, str, id) DoMethod(str, MUIM_Notify, MUIA_List_Active, MUIV_EveryTime, app, 2, MUIM_Application_ReturnID, id)
  16.  
  17. #define StrInt(contents)\
  18.     StringObject,\
  19.         StringFrame,\
  20.         MUIA_String_Contents, contents,\
  21.         MUIA_String_Accept, "0123456789-",\
  22.         End
  23.  
  24. #define Integer(contents)\
  25.     StringObject,\
  26.         StringFrame,\
  27.         MUIA_String_Integer, contents,\
  28.         MUIA_String_Accept, "0123456789-",\
  29.         End
  30.  
  31. #define KeyInteger(contents, key)\
  32.     StringObject,\
  33.         StringFrame,\
  34.         MUIA_Text_HiChar  , key,\
  35.         MUIA_String_Integer, contents,\
  36.         MUIA_String_Accept, "0123456789-",\
  37.         End
  38.  
  39. #define TextLabel(contents,align)\
  40.     TextObject,\
  41.         MUIA_Text_PreParse, align,\
  42.         MUIA_Text_Contents, contents,\
  43.         MUIA_InnerLeft, 0,\
  44.         MUIA_InnerRight, 0,\
  45.         MUIA_FramePhantomHoriz, TRUE,\
  46.         StringFrame,\
  47.         End
  48.  
  49. #define TextLabelFrame(contents,align)\
  50.     TextObject,\
  51.         MUIA_Text_PreParse, align,\
  52.         MUIA_Text_Contents, contents,\
  53.         MUIA_InnerLeft, 0,\
  54.         MUIA_InnerRight, 0,\
  55.         ReadListFrame,\
  56.         End
  57.  
  58. #define TextLabelFrameNA(contents)\
  59.     TextObject,\
  60.         MUIA_Text_Contents, contents,\
  61.         MUIA_InnerLeft, 0,\
  62.         MUIA_InnerRight, 0,\
  63.         ReadListFrame,\
  64.         End
  65.  
  66. #define KeyHButton(name,key,help)\
  67.     TextObject,\
  68.         ButtonFrame,\
  69.         MUIA_Text_Contents, name,\
  70.         MUIA_Text_PreParse, "\33c",\
  71.         MUIA_Text_SetMax  , FALSE,\
  72.         MUIA_Text_HiChar  , key,\
  73.         MUIA_ControlChar  , key,\
  74.         MUIA_InputMode    , MUIV_InputMode_RelVerify,\
  75.         MUIA_Background   , MUII_ButtonBack,\
  76.         MUIA_HelpNode      , help,\
  77.         End
  78.  
  79. #define PopupArg(ptr,obj,retimg,img,hook,arg)\
  80.     HGroup, GroupSpacing(1),\
  81.         Child, ptr=obj,\
  82.         Child, retimg = ImageObject,\
  83.             ImageButtonFrame,\
  84.             MUIA_Image_Spec          , img,\
  85.             MUIA_Image_FontMatchWidth, TRUE,\
  86.             MUIA_Image_FreeVert      , TRUE,\
  87.             MUIA_InputMode           , MUIV_InputMode_RelVerify,\
  88.             MUIA_Background          , MUII_BACKGROUND,\
  89.             End,\
  90.         End
  91.  
  92.  
  93. #define ID_MUI_QUIT        MUIV_Application_ReturnID_Quit
  94.